package edu.ynu.se.xiecheng.achitectureclass.common.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "sensor")
public class Sensor {

    @Id
    private String sensor_id;  // 传感器编号

    private String sensor_name;  // 传感器名称
    private String sensor_unit;  // 传感器单位
    private Double sensor_price;  // 传感器数据值
    private String sensor_greenhouse;  // 对应大棚编号

    // Getter 和 Setter 方法
    public String getSensorId() {
        return sensor_id;
    }

    public void setSensorId(String sensorId) {
        this.sensor_id = sensorId;
    }

    public String getSensorName() {
        return sensor_name;
    }

    public void setSensorName(String sensorName) {
        this.sensor_name = sensorName;
    }

    public String getSensorUnit() {
        return sensor_unit;
    }

    public void setSensorUnit(String sensorUnit) {
        this.sensor_unit = sensorUnit;
    }

    public Double getSensorPrice() {
        return sensor_price;
    }

    public void setSensorPrice(Double sensorPrice) {
        this.sensor_price = sensorPrice;
    }

    public String getSensorGreenhouse() {
        return sensor_greenhouse;
    }

    public void setSensorGreenhouse(String sensorGreenhouse) {this.sensor_greenhouse = sensorGreenhouse;
    }
}
